#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QFormLayout* layout = new QFormLayout(this);
    this->setLayout(layout);
    QLabel* label_name = new QLabel("name");
    QLabel* label_phonenumber = new QLabel("phonenumber");
    QLabel* label_gender = new QLabel("gender");
    QLineEdit* edit1 = new QLineEdit();
    QLineEdit* edit2 = new QLineEdit();
    QLineEdit* edit3 = new QLineEdit();
    QLineEdit* edit4 = new QLineEdit();


    layout->addRow(label_name,edit1);
    layout->addRow(label_phonenumber,edit2);
    layout->addRow(label_gender,edit3);

    QPushButton* button = new QPushButton("correct");
    layout->addRow(nullptr,button);
}

Widget::~Widget()
{
    delete ui;
}

